package org.stvd.entities.common;

import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import org.stvd.entities.base.BaseEntity;

/**
 * @Title WebReflect
 * @Destribution 前台请求与响应service映射关系实体类
 * @author houzx
 * @date 2020年4月1日
 */
@Entity
@Table(name = "web_reflect")
public class WebReflect extends BaseEntity{

    private static final long serialVersionUID = 1723659627946792004L;
    
    /**
     * 主键ID
     */
    @Id
    @Column(name="id",nullable = false)
    private String id = "";
    
    /**
     * 请求路径
     */
    @Id
    @Column(name="request_url",nullable = false)
    private String requestUrl = "";
    
    /**
     * 请求方式：GET 或 POST
     */
    @Id
    @Column(name="request_method",nullable = false)
    private String requestMethod = "";
    
    /**
     * 处理类的类名
     */
    @Column(name="ctrl_name")
    private String ctrlName = "";
    /**
     * post请求后的跳转路径
     */
    @Column(name="response_url")
    private String responseUrl = "";
    
    /**
     * 映射名称
     */
    @Column(name="reflect_name")
    private String reflectName = "";
    
    /**
     * 备注
     */
    @Column(name="remark")
    private String remark = "";
    
    
    
    public WebReflect() {
        super();
    }
    
    public WebReflect(String id, String requestUrl, String requestMethod, String ctrlName, String responseUrl,
        String reflectName, String remark) {
        this.id = id;
        this.requestUrl = requestUrl;
        this.requestMethod = requestMethod;
        this.ctrlName = ctrlName;
        this.responseUrl = responseUrl;
        this.reflectName = reflectName;
        this.remark = remark;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getCtrlName() {
        return ctrlName;
    }

    public void setCtrlName(String ctrlName) {
        this.ctrlName = ctrlName;
    }

    public String getResponseUrl() {
        return responseUrl;
    }

    public void setResponseUrl(String responseUrl) {
        this.responseUrl = responseUrl;
    }

    public String getReflectName() {
        return reflectName;
    }

    public void setReflectName(String reflectName) {
        this.reflectName = reflectName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
